<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>

<script type="text/javascript">
	function ciCategoryTree_onNodeClick(event, treeId, treeNode) {

		ciGrid.search({
			"field" : "conf_category_id",
			"op" : "eq",
			"data" : treeNode.id
		});
	}
</script>


<isperp:tree id="ciCategoryTree" modal="false">
	<isperp:async enable="true"
		url="project/project/library/getProjectCiCategoryTree?projectId=${projectId}">
	</isperp:async>
	<isperp:callback onClick="ciCategoryTree_onNodeClick">
	</isperp:callback>
</isperp:tree>

<div class="header">
	<h2 style="text-align:left">项目配置项列表</h2>
</div>
<isperp:grid gridId="ciGrid"
	url="project/project/library/listProjectCi?projectId=${projectId}"
	cusViewUrl="configuration/ci/ciResumeView">
	<jsp:attribute name="searchbar">
	<table class="form-table">
		<tbody>
			<tr>
				<td class="td1">编号：</td>
				<td class="td2"><input type="text" field="code" op="cn">
				</td>
				<td class="td1">名称：</td>
				<td class="td2"><input type="text" field="name" op="cn">
				</td>

			</tr>
		</tbody>
	</table>
	</jsp:attribute>
	<jsp:body>
	<isperp:column name="id" title="id" hidden="true"></isperp:column>
	<isperp:column name="confCategoryName" title="所在分类" width="80">
	</isperp:column>
	<isperp:column name="code" title="编号" width="80">
	</isperp:column>
	<isperp:column name="name" title="名称" width="100">
	</isperp:column>
	<isperp:column name="status" title="状态" width="60">
	</isperp:column>
	<isperp:column name="creator" title="创建者" width="70">
	</isperp:column>
	<isperp:column name="assetCode" title="资产编号" width="80">
	</isperp:column> 
	<isperp:column name="useStaffName" title="使用者" width="100">
	</isperp:column>
	 </jsp:body>
</isperp:grid>
